Optimal. Leaf size=131 \[ -\frac{\left (3 x^2-x+2\right )^{5/2}}{13 (2 x+1)}-\frac{1}{104} (23-38 x) \left (3 x^2-x+2\right )^{3/2}-\frac{1}{192} (349-294 x) \sqrt{3 x^2-x+2}+\frac{25}{32} \sqrt{13} \tanh ^{-1}\left (\frac{9-8 x}{2 \sqrt{13} \sqrt{3 x^2-x+2}}\right )-\frac{2327 \sinh ^{-1}\left (\frac{1-6 x}{\sqrt{23}}\right )}{384 \sqrt{3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.140166, antiderivative size = 131, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.219, Rules used = {1650, 814, 843, 619, 215, 724, 206} \[ -\frac{\left (3 x^2-x+2\right )^{5/2}}{13 (2 x+1)}-\frac{1}{104} (23-38 x) \left (3 x^2-x+2\right )^{3/2}-\frac{1}{192} (349-294 x) \sqrt{3 x^2-x+2}+\frac{25}{32} \sqrt{13} \tanh ^{-1}\left (\frac{9-8 x}{2 \sqrt{13} \sqrt{3 x^2-x+2}}\right )-\frac{2327 \sinh ^{-1}\left (\frac{1-6 x}{\sqrt{23}}\right )}{384 \sqrt{3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1650
Rule 814
Rule 843
Rule 619
Rule 215
Rule 724
Rule 206
Rubi steps
\begin{align*} \int \frac{\left (2-x+3 x^2\right )^{3/2} \left (1+3 x+4 x^2\right )}{(1+2 x)^2} \, dx &=-\frac{\left (2-x+3 x^2\right )^{5/2}}{13 (1+2 x)}-\frac{1}{13} \int \frac{\left (-\frac{13}{2}-38 x\right ) \left (2-x+3 x^2\right )^{3/2}}{1+2 x} \, dx\\ &=-\frac{1}{104} (23-38 x) \left (2-x+3 x^2\right )^{3/2}-\frac{\left (2-x+3 x^2\right )^{5/2}}{13 (1+2 x)}+\frac{\int \frac{(-78+7644 x) \sqrt{2-x+3 x^2}}{1+2 x} \, dx}{1248}\\ &=-\frac{1}{192} (349-294 x) \sqrt{2-x+3 x^2}-\frac{1}{104} (23-38 x) \left (2-x+3 x^2\right )^{3/2}-\frac{\left (2-x+3 x^2\right )^{5/2}}{13 (1+2 x)}-\frac{\int \frac{245388-726024 x}{(1+2 x) \sqrt{2-x+3 x^2}} \, dx}{59904}\\ &=-\frac{1}{192} (349-294 x) \sqrt{2-x+3 x^2}-\frac{1}{104} (23-38 x) \left (2-x+3 x^2\right )^{3/2}-\frac{\left (2-x+3 x^2\right )^{5/2}}{13 (1+2 x)}+\frac{2327}{384} \int \frac{1}{\sqrt{2-x+3 x^2}} \, dx-\frac{325}{32} \int \frac{1}{(1+2 x) \sqrt{2-x+3 x^2}} \, dx\\ &=-\frac{1}{192} (349-294 x) \sqrt{2-x+3 x^2}-\frac{1}{104} (23-38 x) \left (2-x+3 x^2\right )^{3/2}-\frac{\left (2-x+3 x^2\right )^{5/2}}{13 (1+2 x)}+\frac{325}{16} \operatorname{Subst}\left (\int \frac{1}{52-x^2} \, dx,x,\frac{9-8 x}{\sqrt{2-x+3 x^2}}\right )+\frac{2327 \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^2}{23}}} \, dx,x,-1+6 x\right )}{384 \sqrt{69}}\\ &=-\frac{1}{192} (349-294 x) \sqrt{2-x+3 x^2}-\frac{1}{104} (23-38 x) \left (2-x+3 x^2\right )^{3/2}-\frac{\left (2-x+3 x^2\right )^{5/2}}{13 (1+2 x)}-\frac{2327 \sinh ^{-1}\left (\frac{1-6 x}{\sqrt{23}}\right )}{384 \sqrt{3}}+\frac{25}{32} \sqrt{13} \tanh ^{-1}\left (\frac{9-8 x}{2 \sqrt{13} \sqrt{2-x+3 x^2}}\right )\\ \end{align*}
Mathematica [A] time = 0.0899109, size = 103, normalized size = 0.79 \[ \frac{\frac{6 \sqrt{3 x^2-x+2} \left (288 x^4-96 x^3+564 x^2-332 x-493\right )}{2 x+1}+900 \sqrt{13} \tanh ^{-1}\left (\frac{9-8 x}{2 \sqrt{13} \sqrt{3 x^2-x+2}}\right )+2327 \sqrt{3} \sinh ^{-1}\left (\frac{6 x-1}{\sqrt{23}}\right )}{1152} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.055, size = 179, normalized size = 1.4 \begin{align*}{\frac{-1+6\,x}{24} \left ( 3\,{x}^{2}-x+2 \right ) ^{{\frac{3}{2}}}}+{\frac{-23+138\,x}{192}\sqrt{3\,{x}^{2}-x+2}}+{\frac{2327\,\sqrt{3}}{1152}{\it Arcsinh} \left ({\frac{6\,\sqrt{23}}{23} \left ( x-{\frac{1}{6}} \right ) } \right ) }-{\frac{1}{26} \left ( 3\, \left ( x+1/2 \right ) ^{2}-4\,x+{\frac{5}{4}} \right ) ^{{\frac{5}{2}}} \left ( x+{\frac{1}{2}} \right ) ^{-1}}-{\frac{25}{156} \left ( 3\, \left ( x+1/2 \right ) ^{2}-4\,x+{\frac{5}{4}} \right ) ^{{\frac{3}{2}}}}+{\frac{-13+78\,x}{96}\sqrt{3\, \left ( x+1/2 \right ) ^{2}-4\,x+{\frac{5}{4}}}}-{\frac{25}{32}\sqrt{12\, \left ( x+1/2 \right ) ^{2}-16\,x+5}}+{\frac{25\,\sqrt{13}}{32}{\it Artanh} \left ({\frac{2\,\sqrt{13}}{13} \left ({\frac{9}{2}}-4\,x \right ){\frac{1}{\sqrt{12\, \left ( x+1/2 \right ) ^{2}-16\,x+5}}}} \right ) }+{\frac{-1+6\,x}{52} \left ( 3\, \left ( x+1/2 \right ) ^{2}-4\,x+{\frac{5}{4}} \right ) ^{{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.49578, size = 178, normalized size = 1.36 \begin{align*} \frac{1}{4} \,{\left (3 \, x^{2} - x + 2\right )}^{\frac{3}{2}} x - \frac{1}{8} \,{\left (3 \, x^{2} - x + 2\right )}^{\frac{3}{2}} + \frac{49}{32} \, \sqrt{3 \, x^{2} - x + 2} x + \frac{2327}{1152} \, \sqrt{3} \operatorname{arsinh}\left (\frac{6}{23} \, \sqrt{23} x - \frac{1}{23} \, \sqrt{23}\right ) - \frac{25}{32} \, \sqrt{13} \operatorname{arsinh}\left (\frac{8 \, \sqrt{23} x}{23 \,{\left | 2 \, x + 1 \right |}} - \frac{9 \, \sqrt{23}}{23 \,{\left | 2 \, x + 1 \right |}}\right ) - \frac{349}{192} \, \sqrt{3 \, x^{2} - x + 2} - \frac{{\left (3 \, x^{2} - x + 2\right )}^{\frac{3}{2}}}{4 \,{\left (2 \, x + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.71441, size = 396, normalized size = 3.02 \begin{align*} \frac{2327 \, \sqrt{3}{\left (2 \, x + 1\right )} \log \left (-4 \, \sqrt{3} \sqrt{3 \, x^{2} - x + 2}{\left (6 \, x - 1\right )} - 72 \, x^{2} + 24 \, x - 25\right ) + 900 \, \sqrt{13}{\left (2 \, x + 1\right )} \log \left (\frac{4 \, \sqrt{13} \sqrt{3 \, x^{2} - x + 2}{\left (8 \, x - 9\right )} - 220 \, x^{2} + 196 \, x - 185}{4 \, x^{2} + 4 \, x + 1}\right ) + 12 \,{\left (288 \, x^{4} - 96 \, x^{3} + 564 \, x^{2} - 332 \, x - 493\right )} \sqrt{3 \, x^{2} - x + 2}}{2304 \,{\left (2 \, x + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (3 x^{2} - x + 2\right )^{\frac{3}{2}} \left (4 x^{2} + 3 x + 1\right )}{\left (2 x + 1\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.84953, size = 770, normalized size = 5.88 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]